#!/bin/bash
videoUrl=$HOME"/Downloads/1.mp4"
imgUrl=$HOME"/Downloads/1.jpg"
# 第几帧
frame=1
ffmpeg -i $videoUrl -ss $frame -f image2 $imgUrl